package com.xhwl.centiotdata.pojo.constant;

import org.apache.kafka.common.protocol.types.Field;

public class DaHuaIccConstant {
    // 访客身份类型，固定值，默认为1，兼容老版本
    public static final Integer VISITOR_TYPE = 1;
    // 审批标识，1为跳过审批，0默认为审批
    public static final Integer USER_ID = 1;
    // 访客类型编码，大华平台上面的身份，默认为1
    public static final Integer SECOND_VISITOR_TYPE = 1;

    public static final String CARD_EXIST = "28140000";

    // 大华访客预约状态常量,2为在访问，3为离访
    public static final Integer ARRIVE = 2;
    public static final Integer LEAVE = 3;

    /**
     * 大华报警主机在线：6，离线：7
     */
    public static final Integer ALARM_HOST_ONLINE = 6;
    public static final Integer ALARM_HOST_OFFLINE = 7;

    public static final String FALSE_CODE = "false";

    /**
     * 查询所有报警主机及状态
     */
    public static final String ALARM_HOST_URL = "/evo-apigw/evo-alarm/1.0.0/alarmhosts/all";

    /**
     * api
     */
    public static final String PUBLIC_KEY_URL = "/evo-apigw/evo-oauth/1.0.0/oauth/public-key";
    public static final String LOGIN_URL = "/evo-apigw/evo-oauth/1.0.0/oauth/extend/token";

    public static final String ADMIN_REST_URL = "/evo-apigw/evo-brm/1.2.0/device/subsystem/page";

    /**
     * 查询设备详细信息
     */
    public static final String DEVICE_DETAIL_URL = "/evo-apigw/evo-brm/1.0.0/device/{deviceCode}";
    public static final String PEDESTRIAN_RECORD_URL = "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/swingCardRecord/bycondition/combined";
    public static final String FACE_RECORD_URL = "/evo-apigw/evo-face/faceRecognition/page";

    public static final String OPEN_DOOR = "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/channelControl/openDoor";
    public static final String APPOINTMENT_BY_CERTIFICATE_NUMBER = "/evo-apigw/evo-visitor/1.0.0/card/visitor/getAppointmentByCertificateNumber/";

    /**
     * 根据预约码获取访客信息
     */
    public static final String APPOINTMENT_BY_APPOINTMENT_CODE = "/evo-apigw/evo-visitor/1.0.0/card/visitor/getAppointmentByCode/";
    /**
     * 获取大华访客记录分页
     */
    public static final String VISITOR_ACCESS_RECORD = "/evo-apigw/evo-visitor/1.0.0/card/visitor/getVisitorData";
    /**
     * 访客访问区域分页
     */
    public static final String VISITOR_AREA_PAGE = "/evo-apigw/evo-visitor/1.0.0/area/page";

    /**
     * 访客访问区域详情
     */
    public static final String VISITOR_AREA_DETAIL = "/evo-apigw/evo-visitor/1.0.0/area/";

    /**
     * 批量增加卡片
     */
    public static final String CREATE_IDENTITY_URL = "/evo-apigw/evo-brm/1.0.0/card/batch-add";
    /**
     * 访客预约审批
     */
    public static final String VISITOR_REVIEW_IDENTITY_URL = "/evo-apigw/evo-visitor/1.0.0/card/visitor/review";
    /**
     * 删除卡片
     */
    public static final String DELETE_IDENTITY_URL = "/evo-apigw/evo-brm/1.0.0/card/delete";
    /**
     * 退卡片
     */
    public static final String RETURN_IDENTITY_URL = "/evo-apigw/evo-brm/1.0.0/card/return";
    /**
     * 激活卡片
     */
    public static final String ACTIVE_CARD_URL = "/evo-apigw/evo-brm/1.0.0/card/active";
    /**
     * 更新卡片信息
     */
    public static final String UPDATE_IDENTITY_URL = "/evo-apigw/evo-brm/1.0.0/card/update";
    /**
     * 查询卡片详情
     */
    public static final String IDENTITY_URL_DETAIL = "/evo-apigw/evo-brm/1.0.0/card/";

    /**
     * 查询卡片
     */
    public static final String QUERY_IDENTITY_URL = "/evo-apigw/evo-brm/1.2.0/card/subsystem/page";
    /**
     * 创建用户
     */
    public static final String CREATE_USER_URL = "/evo-apigw/evo-brm/1.2.0/person/subsystem/add";
    /**
     * 查询用户详情
     */
    public static final String QUERY_USER_URL = "/evo-apigw/evo-brm/1.2.0/person/subsystem/";

    /**
     * 查询用户详情
     */
    public static final String DELETE_USER_URL = "/evo-apigw/evo-brm/1.0.0/person/delete";

    /**
     * 更新用户详情
     */
    public static final String UPDATE_USER_URL = "/evo-apigw/evo-brm/1.2.0/person/subsystem/update";

    /**
     * 增加授权
     */
    public static final String ADD_AUTH_URL = "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/doorAuthority";
    /**
     * 删除授权
     */
    public static final String DELETE_AUTH_URL = "/evo-apigw/evo-accesscontrol/1.0.0/card/accessControl/doorAuthority/delete/batch";
    /**
     * 获取二维码
     */
    public static final String QR_CODE_URL = "/evo-apigw/evo-visitor/1.0.0/card/visitor/community/appointment";
    /**
     * 访客预约
     */
    public static final String VISITOR_APPOINTMENT = "/evo-apigw/evo-visitor/1.0.0/card/visitor/appointment";

    /**
     * 获取内部人员二维码
     */
    public static final String INSIDE_QR_CODE_URL = "/evo-apigw/evo-accesscontrol/1.0.0/card/card/generateQRCode";
    /**
     * 访客预约
     */
    public static final String VISITOR_BOOK_URL = "/evo-apigw/evo-visitor/1.0.0/card/visitor/appointment";

    /**
     * 人员ID生成
     */
    public static final String GENERATE_USER_URL = "/evo-apigw/evo-brm/1.0.0/person/generate-id";

    /**
     * 人脸照片上传
     */
    public static final String UPLOAD_IMAGE_URL = "/evo-apigw/evo-brm/1.2.0/person/upload/img";
    /**
     * OSS拼接图片
     */
    public static final String OSS = "/evo-apigw/evo-oss/";
    /**
     * 取消访客预约
     */
    public static final String VISITOR_DELETE_BOOK_URL = "/evo-apigw/evo-visitor/1.0.0/card/visitor/changeBookStatusByIds";
    public static final String IDENTITY_KEY = "iot-data:dahuaIcc:%1$s.indentity";

    public static final int IDENTITY_TIME = 24 * 60 * 60;

    public static final Integer PEDES_DEVICE_TYPE = 8;
    public static final Integer PEDES_UNITYPE_DOOR = 7;
    public static final Integer PEDES_UNITYPE_FACE = 1;
    public static final String AUTHOR = "Authorization";
    public static final Integer DEFAULT_DEPARTMENT_ID = 1;
    public static final Integer DEFAULT_PAPER_TYPE = 111;
    public static final String DEFAULT_ADDRESS = "未知";
    public static final String DEFAULT_SERVICE = "evo-thirdParty";

    public static final Integer DAHUA_FACE_TYPE = 3;
    public static final Integer DAHUA_DELETE_BOOK = 4;

    public static final String OSS_URI = "/evo-apigw/evo-oss/{uri}?token={token}";

    /**
     * 查询ICC已订阅
     */
    public static final String SUBSCRIBE_LIST_URL = "/evo-apigw/evo-event/1.0.0/subscribe/subscribe-list";

    /**
     * 订阅或删除订阅
     */
    public static final String SUBSCRIBE_URL = "/evo-apigw/evo-event/1.0.0/subscribe/mqinfo";

    /**
     * 部门全局id生成
     */
    public static final String DEPARTMENT_GENERATE_URL = "/evo-apigw/evo-brm/1.0.0/department/generate-id";

    /**
     * 新增部门
     */
    public static final String DEPARTMENT_ADD_URL = "/evo-apigw/evo-brm/1.0.0/department/add";

    /**
     * 修改部门
     */
    public static final String DEPARTMENT_UPDATE_URL = "/evo-apigw/evo-brm/1.0.0/department/update";

    /**
     * 删除部门
     */
    public static final String DEPARTMENT_DELETE_URL = "/evo-apigw/evo-brm/1.0.0/department/delete";

}
